import QtQuick 2.0
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import "qrc:/qmlComponents/CustomizedUIElement"
import "qrc:/qmlComponents/ConfigManager"

MyTabView{
    id: root
    indent: 2

    Component{
        id: dispWHViewer
        DispenseWorkHolderViewer{
        }
    }
    Component{
        id: rightDHViewer
        DispenseHeadViewer{
            dhConfigModel: rightDHConfig
            dispenseHead: rightDispHead
            isRightDH: true
            dispZModuleName: "RightDispZ"
            dispXyzModuleName: "RightDispXYZ"
            rightDispXyzModuleName: "RightDispXYZ"
        }
    }
    Component{
        id: leftDHViewer
        DispenseHeadViewer{
            dhConfigModel: leftDHConfig
            dispenseHead: leftDispHead
            isRightDH: false
            dispZModuleName: "LeftDispZ"
            dispXyzModuleName: "LeftDispXYZ"
            rightDispXyzModuleName: "RightDispXYZ"
        }
    }

    Component.onCompleted: {
        addTab("DispenseWorkHolder", dispWHViewer)
        addTab("RightDispenseHead", rightDHViewer)
        addTab("LeftDispenseHead", leftDHViewer)
    }
}
